package com.xzc.one.test.model;

import java.math.BigDecimal;
import java.util.Date;

/**
 * database	: health <br/>
 * table	: coupon <br/>
 * description : 券的管理 <br/>
 * time:    2020-05-29 18:34:42 <br/>
 * @author  yujinyi <br/>
 */
public class Coupon {

	/**  */
	private Long id;
	/** 机构id（门店id） */
	private Integer organId;
	/** 活动名称 */
	private String name;
	/** 赠品名称 */
	private String giftName;
	/** 消费金额（即消费时达到此金额才可以使用券或现金券额度或随机券的最小金额） */
	private BigDecimal price;
	/** 满减金额（即优惠的金额） */
	private BigDecimal disPrice;
	/** 消费金额上限，随机券类型才有这个限制 */
	private BigDecimal maxPrice;
	/** （ComIsNotEnum）状态：0禁用，1启用 */
	private Integer isEnable;
	/** 折扣比例，存正整数，如7代表打七折 */
	private Integer discount;
	/** 类型：1满减券，2折扣券，3现金券，4随机券，5礼品券 */
	private Integer couponType;
	/** 来源类型：0连锁分店，1连锁总部 */
	private Integer sourceType;
	/** 内容 */
	private String content;
	/** 使用说明 */
	private String useExplain;
	/** 使用须知 */
	private String useNotice;
	/** 领取后，券的有效天数 */
	private Integer validays;
	/** 券的活动开始时间 */
	private Date startTime;
	/** 券的活动结束时间 */
	private Date endTime;
	/** 发放数量或赠送数量 */
	private Integer count;
	/** 发放的剩余数量 */
	private Integer remainCount;
	/** 使用数量（即已核销数量） */
	private Integer useCount;
	/** 添加时间 */
	private Date createTime;
	/** 创建人 */
	private String createBy;
	/** 创建人id */
	private Long createUserId;
	/** 更新人id */
	private Long updateUserId;
	/** 更新时间 */
	private Date updateTime;

	public Long getId() {
		return id;
	}

	public void setId(Long id) {
		this.id = id;
	}
	
	public Integer getOrganId() {
		return organId;
	}

	public void setOrganId(Integer organId) {
		this.organId = organId;
	}
	
	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}
	
	public String getGiftName() {
		return giftName;
	}

	public void setGiftName(String giftName) {
		this.giftName = giftName;
	}
	
	public BigDecimal getPrice() {
		return price;
	}

	public void setPrice(BigDecimal price) {
		this.price = price;
	}
	
	public BigDecimal getDisPrice() {
		return disPrice;
	}

	public void setDisPrice(BigDecimal disPrice) {
		this.disPrice = disPrice;
	}
	
	public BigDecimal getMaxPrice() {
		return maxPrice;
	}

	public void setMaxPrice(BigDecimal maxPrice) {
		this.maxPrice = maxPrice;
	}
	
	public Integer getIsEnable() {
		return isEnable;
	}

	public void setIsEnable(Integer isEnable) {
		this.isEnable = isEnable;
	}
	
	public Integer getDiscount() {
		return discount;
	}

	public void setDiscount(Integer discount) {
		this.discount = discount;
	}
	
	public Integer getCouponType() {
		return couponType;
	}

	public void setCouponType(Integer couponType) {
		this.couponType = couponType;
	}
	
	public Integer getSourceType() {
		return sourceType;
	}

	public void setSourceType(Integer sourceType) {
		this.sourceType = sourceType;
	}
	
	public String getContent() {
		return content;
	}

	public void setContent(String content) {
		this.content = content;
	}
	
	public String getUseExplain() {
		return useExplain;
	}

	public void setUseExplain(String useExplain) {
		this.useExplain = useExplain;
	}
	
	public String getUseNotice() {
		return useNotice;
	}

	public void setUseNotice(String useNotice) {
		this.useNotice = useNotice;
	}
	
	public Integer getValidays() {
		return validays;
	}

	public void setValidays(Integer validays) {
		this.validays = validays;
	}
	
	public Date getStartTime() {
		return startTime;
	}

	public void setStartTime(Date startTime) {
		this.startTime = startTime;
	}
	
	public Date getEndTime() {
		return endTime;
	}

	public void setEndTime(Date endTime) {
		this.endTime = endTime;
	}
	
	public Integer getCount() {
		return count;
	}

	public void setCount(Integer count) {
		this.count = count;
	}
	
	public Integer getRemainCount() {
		return remainCount;
	}

	public void setRemainCount(Integer remainCount) {
		this.remainCount = remainCount;
	}
	
	public Integer getUseCount() {
		return useCount;
	}

	public void setUseCount(Integer useCount) {
		this.useCount = useCount;
	}
	
	public Date getCreateTime() {
		return createTime;
	}

	public void setCreateTime(Date createTime) {
		this.createTime = createTime;
	}
	
	public String getCreateBy() {
		return createBy;
	}

	public void setCreateBy(String createBy) {
		this.createBy = createBy;
	}
	
	public Long getCreateUserId() {
		return createUserId;
	}

	public void setCreateUserId(Long createUserId) {
		this.createUserId = createUserId;
	}
	
	public Long getUpdateUserId() {
		return updateUserId;
	}

	public void setUpdateUserId(Long updateUserId) {
		this.updateUserId = updateUserId;
	}
	
	public Date getUpdateTime() {
		return updateTime;
	}

	public void setUpdateTime(Date updateTime) {
		this.updateTime = updateTime;
	}
	
}